package com.ruoyi.basice_info.mapper;

import java.util.List;
import com.ruoyi.basice_info.domain.TbKnowledgePoints;

/**
 * 知识点设置Mapper接口
 *
 * @author hongyi
 * @date 2023-12-25
 */
public interface TbKnowledgePointsMapper
{
    /**
     * 查询知识点设置
     *
     * @param knowledgePointsId 知识点设置主键
     * @return 知识点设置
     */
    public TbKnowledgePoints selectTbKnowledgePointsByKnowledgePointsId(Long knowledgePointsId);


    public TbKnowledgePoints getTbKnowledgePointsByKnowledgePointsCode(String code);

    public TbKnowledgePoints getTbKnowledgePointsByKnowledgePointsName(String name);

    /**
     * 查询知识点设置列表
     *
     * @param tbKnowledgePoints 知识点设置
     * @return 知识点设置集合
     */
    public List<TbKnowledgePoints> selectTbKnowledgePointsList(TbKnowledgePoints tbKnowledgePoints);

    /**
     * 新增知识点设置
     *
     * @param tbKnowledgePoints 知识点设置
     * @return 结果
     */
    public int insertTbKnowledgePoints(TbKnowledgePoints tbKnowledgePoints);

    /**
     * 修改知识点设置
     *
     * @param tbKnowledgePoints 知识点设置
     * @return 结果
     */
    public int updateTbKnowledgePoints(TbKnowledgePoints tbKnowledgePoints);

    /**
     * 删除知识点设置
     *
     * @param knowledgePointsId 知识点设置主键
     * @return 结果
     */
    public int deleteTbKnowledgePointsByKnowledgePointsId(Long knowledgePointsId);

    /**
     * 批量删除知识点设置
     *
     * @param knowledgePointsIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTbKnowledgePointsByKnowledgePointsIds(Long[] knowledgePointsIds);
}
